package com.order.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.order.po.b_stock;
import com.order.dao.stockDao;
import com.order.service.stockService;
@Service
@Transactional
public class stockServiceImpl implements stockService {

	 @Autowired
	   private stockDao stockDao;
	@Override
	public List<b_stock> getAllstock() {
		// TODO Auto-generated method stub
		return stockDao.getAllstock();
	}
	@Override
	public List<b_stock> get_bystockgoodsid(String parameter) {
		// TODO Auto-generated method stub
		return stockDao.get_bystockgoodsid(parameter);
	}
	@Override
	public List<b_stock> get_stockgoodsid(String parameter) {
		// TODO Auto-generated method stub
		return stockDao.get_stockgoodsid(parameter);
	}
	@Override
	public void insert_stock(b_stock s) {
		// TODO Auto-generated method stub
		stockDao.insert_stock(s);
	}
	@Override
	public void delete_stock(String ykey) {
		// TODO Auto-generated method stub
		stockDao.delete_stock(ykey);
	}

}
